package com.yang.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 货源表
 * @TableName goods
 */
@TableName(value ="goods")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Goods", description = "货源模型")
public class Goods implements Serializable {
    /**
     * 货源编号
     */
    @ApiModelProperty(value = "货源编号")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 货源名称
     */
    @ApiModelProperty(value = "货源名称")
    private String name;

    /**
     * 货源地址
     */
    @ApiModelProperty(value = "货源地址")
    private String address;

    /**
     * 货源分类
     */
    @ApiModelProperty(value = "货源分类")
    private Integer categoryId;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private Double price;

    /**
     * 创建者编号
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者编号")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新者编号
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者编号")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除列
     */
    @ApiModelProperty(value = "逻辑删除列")
    private Integer delFlag;

    @ApiModelProperty(value = "货源分类")
    @TableField(exist = false)
    private String categoryName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}